﻿#pragma once
#include "yzrutil.h"
#include "array/Array.hpp"

namespace yzrilyzr_io{
	EBCLASS(OutputStream){
	public:
	OutputStream();
	virtual ~OutputStream();
	virtual void write(int32_t b)=0;
	virtual void write(const yzrilyzr_array::ByteArray & b);
	virtual void write(const yzrilyzr_array::ByteArray & b, u_index off, u_index len);
	virtual void flush();
	virtual void close();
	};
}